city state
noun
°A sovereign city, as in Ancient Greece, often part of a federation of such cities.